package org.ffrl.design.adapter;

public class TurkeyAdapter implements Duck {
    
    Turkey turkey;
    
    public TurkeyAdapter(Turkey turkey) {
        this.turkey = turkey;
    }
    
    @Override
    public void quck() {
        // 接口转换，实际情况不是直接调用
        turkey.gobble();
    }
    
    @Override
    public void fly() {
        // 接口转换，实际情况不是直接调用
        turkey.fly();
    }
    
}
